package com.yfp.operation.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yfp.operation.domain.MarCouponPackDetails;
import com.yfp.operation.domain.dto.MarCouponPackCountDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 * @description 针对表【mar_coupon_pack_details(礼包详情)】的数据库操作Mapper
 * @createDate 2024-09-25 10:37:56
 * @Entity domain.com.yfp.operation.MarCouponPackDetails
 */
public interface MarCouponPackDetailsMapper extends BaseMapper<MarCouponPackDetails> {

    /**
     * 根据礼包id查询礼包详情总数量
     *
     * @param couponPackIds
     * @return
     */
    List<MarCouponPackCountDTO> countByCouponPackIds(@Param("couponPackIds") List<Long> couponPackIds);

    /**
     * 根据礼包id查询礼包详情
     *
     * @param couponPackId
     * @return
     */
    List<MarCouponPackDetails> selectByCouponPackId(Long couponPackId);

    /**
     * 根据礼包id集合查询礼包详情
     *
     * @param couponPackIds
     * @return
     */
    List<MarCouponPackDetails> selectByCouponPackIds(@Param("couponPackIds") List<Long> couponPackIds);

    List<MarCouponPackDetails> marCouponPackDetails(Long rewardId);
}




